<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title>edit-record</title>
	<link rel="stylesheet" href="../css/bootstrap.min.css" />
	<link rel="stylesheet" href="../css/style.css" />
</head>
<body>
	<div class="container">
		<!--header start-->
		<div class="header">
			<%@ include file="include/top.jsp" %>
		</div>
		<!--header end-->
		<div class="content">
			<div class="row">
				<div class="span9">
					<div class="list">
						<span><i class="icon-hand-right"></i>修改记录</span>
					</div>
					<div class="newproduct">
						<form class="form-horizontal" action="editrecord.jspx" method="post" id="fm">
							<input type="hidden" value="${record.id}" name="id"/>
							<div class="control-group">
								<label class="control-label" for="inputPassword">记录内容</label>
								<div class="controls">
									<textarea rows="3"  class="span5 required"  name="content">${record.recordContent}</textarea>
								</div>
							</div>
							<div class="form-actions">
								<button type="submit" class="btn btn-primary" id="addcontactbtn">修改</button>
								<a href="showallrecord.jspx?contactid=${record.contactId}" class="btn">返回</a>
							</div>
						</form>
					</div>
				</div>
				<div class="span3"></div>
			</div>
		</div>
		<%@ include file="include/footer.jsp" %>
	</div>
	<script type="text/javascript" src="../js/jquery.js"></script>
	<script type="text/javascript" src="../js/bootstrap.min.js"></script>
	<script type="text/javascript" src="../js/jquery.validate.min.js"></script>
	<script type="text/javascript" src="../js/messages_zh.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			//进行验证
			$("#fm").validate();
		});
	</script>
</body>
</html>